home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / pascal / xlib.zip / XRES.DOC < prev    next >
Text File  |  1992-09-06  |  1KB  |  37 lines

  1.  
  2.                                 XRes
  3.                                 ----
  4.  
  5. Most of my programs make use of resource-files. With this unit the resource
  6. file is assigned to the program. The resource itself can be located
  7. in different places:
  8.  
  9.    -a)  Linked to the program as OBJ with the BINOBJ program
  10.            ( This can be neccessary for programs called from disks )
  11.  
  12.    -b)  From a resource file at the same place where the exe was
  13.         found and the extenstion ".EXT"
  14.  
  15.    -c)  A resource file Linked to the program with the COPY /B command
  16.         append after the code and overlay !
  17.  
  18. Also there can be different access methods through the resource depending
  19. what system-resources aviable. If an OBJ resource is used it is directly
  20. accessed in the RAM where the code lays. At the other side there would
  21. be checked what memory types can be used in the following order:
  22.  
  23.      if Ems aviable then use it
  24. else If Xms avaible then use it
  25. else use normal (slow) Dos access to the resource
  26.  
  27. It defines only one variable in the interface which were initalize
  28. in the unit-init part.
  29.  
  30. VAR  ResFile : TResourceFile; (* All the resources for a program *)
  31.  
  32. All object resources can be read from that resource file,
  33. via a ResFile.Get( 'xyz' );
  34.  
  35.  
  36.  
  37.